package com.lbloca.locate.ui.activity;

import android.os.Handler;
import android.os.Message;

import androidx.annotation.NonNull;

import com.lbloca.locate.R;
import com.lbloca.locate.ui.base.BaseActivity;


public class SplashActivity extends BaseActivity {
    @Override
    protected void initEvents() {

    }

    @Override
    protected void initData() {
        mHandler.sendEmptyMessageDelayed(1,3000);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_splash;
    }

    @Override
    protected void initView() {

    }

    @SuppressWarnings("HandlerLeak")
    Handler mHandler = new Handler(){
        @Override
        public void handleMessage(@NonNull Message msg) {
            super.handleMessage(msg);
            MainActivity.start(SplashActivity.this);
            SplashActivity.this.finish();
        }
    };
}
